const Router = require('@koa/router')
// const cors = require('koa2-cors')

const router = new Router()
// 用户
router.use('/api/user', require('./user'))
// 上传
router.use('/api/upload', require('./upload'))
// 商品
router.use('/api/commodity', require('./commodity'))
// 购物车
router.use('/api/shopping-cart', require('./shopping-cart'))
// 分类
router.use('/api/classify', require('./classify'))
// 品牌
router.use('/api/brand', require('./brand'))
// 评论
router.use('/api/comment', require('./comment'))
router.use('/api/brand', require('./brand'))
// 店铺
router.use('/api/shop', require('./shop'))
// 订单
router.use('/api/order', require('./order'))

module.exports = router